package com.eis.persist.model.user;

import java.io.Serializable;
import java.util.List;

import com.eis.persist.model.base.BasePersist;


public class PersistBizGroup extends BasePersist implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 9171662693637144811L;
	private int id;
	private String name;
	private String description;
	private boolean isConfiged;
	private PersistBizGroup parent;
	private List<PersistBizGroupFunction> groupFunctions;
	private int order;
	
	public PersistBizGroup(){}
			
	public PersistBizGroup(int id) {
		this.id = id;
	}
	
	public PersistBizGroup(int id, String name, String description, boolean isConfiged, int parentId, String parentName) {
		this.id = id;
		this.name = name;
		this.description = description;
		this.isConfiged = isConfiged;
		if (parentId > 0) {
			parent = new PersistBizGroup(parentId);
			parent.setName(parentName);
		}
	}
	
	public PersistBizGroup(int id, String name, String description, boolean isConfiged, int parentId) {
		this.id = id;
		this.name = name;
		this.description = description;
		this.isConfiged = isConfiged;
		if (parentId > 0) {
			parent = new PersistBizGroup(parentId);
		}
	}
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public boolean isConfiged() {
		return isConfiged;
	}
	public void setConfiged(boolean isConfiged) {
		this.isConfiged = isConfiged;
	}
	public PersistBizGroup getParent() {
		return parent;
	}
	public void setParent(PersistBizGroup parent) {
		this.parent = parent;
	}
	public List<PersistBizGroupFunction> getGroupFunctions() {
		return groupFunctions;
	}
	public void setGroupFunctions(List<PersistBizGroupFunction> groupFunctions) {
		this.groupFunctions = groupFunctions;
	}

	public int getOrder() {
		return order;
	}

	public void setOrder(int order) {
		this.order = order;
	}
}
